#hardware platform: FireBeetle-ESP32from machine import IISfrom machine import Pinimport timeplayer = IIS(IIS.PLAYER)                        #create a iis objectbutton = Pin(16, Pin.IN)def mycb(path):  print("callback : play "+ path + " is done")  player.init()                                   #init playerplayer.load('/sd/It\'s My Life - Bon Jovi.wav') #load music 'It\'s My Life - Bon Jovi.wav'player.queue('/sd//dir1///dir2/hidfrobot2.wav') #load the next musicplayer.set_volume(30)                           #set volumeplayer.play(0,0.0)                              #set play times and start timeplayer.set_endcallback(mycb)                    #set callback#Catch exceptions,stop player if interrupted accidentallytry:
  while True:    if button.value() == 0:      if player.get_busy():                     #pause while player is playing        player.pause()      else:                                     #else continue to play        player.unpause()    time.sleep(0.5)
except:
  player.stop()